<!DOCTYPE html>
<html>
	<head>
<meta charset="utf-8">
<title>添加设备故障记录</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/res/layui/css/layui.css"  media="all">
<link rel="stylesheet" href="/res/js/common/Viewer/viewer.min.css" />
<link rel="stylesheet" href="/res/js/common/videJS/video-js.min.css" />
<link rel="stylesheet" href="/res/css/style.css" media="all">
<style>
	.layui-table {
		width:600px!important;;
	}
	/* 加载的表格样式---提高优先级 */
	
	.layui-form-label {
		width: 140px
	}
</style>
<body>
<div class="layui-fluid" style="padding-top:10px;">
<span class="layui-breadcrumb">
  <a><cite>首页</cite></a>
  <a><cite id="Title">添加设备故障记录</cite></a>
</span>
<div class="layui-clear"></div>
<form id="form_edit" class="layui-form" style="margin-top:30px;" action="">
	<input type="hidden" id="id" name="id" />	
	<div class="layui-form-item">			
		<label class="layui-form-label"><span style="color:red;">*</span>故障设备</label>
		<div class="layui-input-inline">
		        <input type="text" id="equipmentName" placeholder="请选择设备"  autocomplete="off" class="layui-input">
				<input type="hidden" id="equipmentId" name="equipmentId" autocomplete="off" class="layui-input" lay-verify="fequipmentId" lay-filter="fequipmentId">
		</div>
	</div>
	<div class="layui-form-item">	
	    <label class="layui-form-label"><span style="color:red;">*</span>故障状态</label>
       	<div class="layui-input-inline">				    	
		    <select name="state" id="state" placeholder="状态" lay-verify="fstate" lay-filter="fstate" selectTypeMain="fault_state" >
		      <option value="">请选择状态</option>	 
		    </select>    						   
	    </div>
   	</div>
   	<div class="layui-form-item">
		<label  class="layui-form-label"><span style="color:red;">*</span>故障描述</label>
		<div class="layui-input-inline" style="width:530px;">
		   <textarea id="describe" name="describe" rows="5" lay-verify="fdescribe" maxlength="100" class="layui-textarea"></textarea>
		</div>
	</div>	
	<div class="layui-form-item">
		<label  class="layui-form-label">备注</label>
		<div class="layui-input-inline" style="width:530px;">
		   <textarea id="remarks" name="remarks" rows="5" lay-verify="fremarks" placeholder="填写备注......" class="layui-textarea"></textarea>
		</div>
	</div>		
	<div class="layui-form-item" id="imgp1">
	    <label class="layui-form-label">上传附件</label>	
		<div class="layui-upload" style="text-align: left;">
		  <button type="button" class="layui-btn layui-btn-normal" id="testList">选择附件</button> 
		  <div class="layui-upload-list up-img"  style="margin-left:170px">
		    <table class="layui-table">
		      <thead>
		        <tr>
		          <th>文件名</th>
		          <th>操作</th>
		        </tr>
		       </thead>
		      <tbody id="demoList"></tbody>
		    </table>
		  </div>
		</div>
	</div>				
	<div class="layui-form-item" style="margin-top:30px">
	    <div class="layui-input-block">
	      <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
		  <button class="layui-btn layui-btn-primary" onclick="historyBack()">返回</button>
	    </div>
	</div>
</form>
<!--选择设备-->
<div id="form_addequment" class="layui-form" style="margin-top:30px;margin-left:30px;display:none">
		<div class="demoTable">
			<div class="layui-input-inline">						   
		       <input type="text" name="name" id="nameDemoTable" placeholder="按设备名称搜索" class="layui-input"   condition=""/>					
		    </div>
		    <div class="layui-input-inline">						   
		       <input type="text" name="code" id="code" placeholder="按设备编码搜索" class="layui-input"   condition=""/>					
		    </div>
			<div class="layui-input-inline" id="searchbutton">
	             <button class="layui-btn layui-btn-normal" lay-submit lay-filter="queryData1"><i class="layui-icon ">&#xe615</i></button>      		
	        </div>
	        <div class="layui-input-inline" style="margin-left:8%">
	              <button class="layui-btn layui-btn-normal" data-type="equipmentId" id="formsure">确定添加</button>      		
	        </div>
	        <div class="layui-tab-item layui-show" >
	    		<table class="layui-hide" id="equipmentData" lay-filter="equipmentDataTest"></table>
	    	</div>	
		</div>																																							
	</div>
</body>
<script src="/res/js/common/jquery-3.2.1.min.js"></script>
<script src="/res/js/common/app.js"></script>
<script src="/res/js/common/Viewer/viewer.min.js"></script>
<script src="/res/js/common/videJS/video.min.js"></script>	
<script src="/res/js/validate.js"></script>
<script src="/res/layui/layui.js"></script>
<script type="text/javascript" src="/res/js/equipment/AddEquipment.js" ></script>
<script type="text/javascript" src="/res/js/equipmentFault/equipmentFault_form.js" ></script>
</html>